package com.dingwen.stu.spr.advice;


import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * 后置通知测试
 *
 * @author dingwen
 * @date 2021/10/07
 */
public class AfterTest implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] objects, Object target) throws Throwable {
        System.out.println("后置通知执行， 类" + target.getClass().getName() + "的" + method.getName() + "方法。返回值为" + returnValue);
    }
}
